<?php


class AlumnoTable extends Doctrine_Table
{
    public static function getInstance()
    {
        return Doctrine_Core::getTable('Alumno');
    }
    public static function obtenerAlumnosPorAnio($anio)
    {
        return Doctrine_Core::getTable('Alumno')->createQuery('a')
                ->where('a.anio = ?',array($anio))
                ->execute();
    }
}